package com.sugar.subscribe.course.module.business.controller.admin.serviceclass.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;

@Schema(description = "管理后台 - 服务分类新增/修改 Request VO")
@Data
public class ServiceClassSaveReqVO {

    @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "5381")
    private Long id;

    @Schema(description = "分类名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    @NotEmpty(message = "分类名称不能为空")
    private String name;

    @Schema(description = "分类图标", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "分类图标不能为空")
    private String icon;

    @Schema(description = "父级分类ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "19230")
    @NotNull(message = "父级分类不能为空")
    private Long parentId;

    @Schema(description = "排序")
    private Integer sort;

    @Schema(description = "首页推荐（0否 1是）", requiredMode = Schema.RequiredMode.REQUIRED)
    private Boolean homeRecommend;
}